/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.sys.entity;

import com.jims.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * 人员信息Entity
 * @author yangruidong
 * @version 2016-04-13
 */
@XmlRootElement
public class PersionInfo extends DataEntity<PersionInfo> {
    private static final long serialVersionUID = 1L;
    private String name; // 姓名
    private String sex;// 性别
    private String nation; // 民族
    private String cardNo; // 身份证号
    private String phoneNum; // 联系电话
    private String email; // 邮箱
    private String nickName; // 昵称
    private String inputCode; //拼音码


    public PersionInfo() {
        super();
    }

    public PersionInfo(String id){
        super(id);
    }

    @Length(min=0, max=100, message="姓名长度必须介于 0 和 100 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min=0, max=2, message="性别长度必须介于 0 和 2 之间")
    public String getSex() {
        return sex;
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Length(min=0, max=64, message="民族长度必须介于 0 和 64 之间")
    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    @Length(min=0, max=20, message="身份证号长度必须介于 0 和 20 之间")
    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    @Length(min=0, max=11, message="联系电话长度必须介于 0 和 11 之间")
    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    @Length(min=0, max=100, message="邮箱长度必须介于 0 和 100 之间")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Length(min=0, max=100, message="昵称长度必须介于 0 和 100 之间")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

}